<!DOCTYPE html>
<html lang='zh-CN'>
<head>
  <meta charset='UTF-8'>
  <meta name='viewport' content='width=device-width, initial-scale=1.0'>
  <link rel='icon' href='data:;base64,='> <!-- 禁止请求 favicon.ico  -->
  <title>门窗测试</title>
  <style>
     *{
       margin:0 auto;
       padding:0;
       box-sizing:border-box;
     }
     html,body{
      height:100%;
    }
    body{
      width:100%;
      background: linear-gradient(skyblue,khaki);
    }
    #rq{
      margin-top:200px;
       width:800px;
       height:800px;
       border:1px solid red;
    }
    #rq *{
      position:absolute;
    }
    /* 窗户0  推拉窗~~~~~~~~~~~~~~~~~~~~~~~~*/
    .cs_w_0{
       width:80px;
       height:80px;
       background: url(./component/window0/cs_w_0.png);
       transform-style:preserve-3d;
       border:1px solid blue;
    }
    .cs_w_0 *{
       position:absolute;
       transform-style:preserve-3d;
    }
    .cs_w_0_0{
      width:39px;
      height:50px;
      background:url(./component/window0/cs_w_0_0.png);
      transform:translate3d(39px,26px,0px);
      transition:transform 1s;
    }
    .cs_w_0:hover .cs_w_0_0{
      transform:translate3d(4px,26px,0px);
    }
    /* 窗户1  推拉窗~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
    .cs_w_1{
       width:80px;
       height:80px;
       background: url(./component/window0/cs_w_1.png);
       transform-style:preserve-3d;
       border:1px solid blue;
    }
    .cs_w_1 *{
       position:absolute;
       transform-style:preserve-3d;
    }
    .cs_w_1_0{
      width:39px;
      height:50px;
      background:url(./component/window0/cs_w_1_0.png);
      transform:translate3d(39px,26px,0px);
      transition:transform 1s;
    }
    .cs_w_1:hover .cs_w_1_0{
      transform:translate3d(4px,26px,0px);
    }
    /* 窗户2  开合窗~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
    .cs_kw_0{
        width:100px;
        height:80px;
        background: url(./component/window0/cs_kw_0.png);
        transform-style:preserve-3d;
        /* transform:rotateX(30deg);  */
    }
    .cs_kw_0 *{
        position:absolute;
        transform-style:preserve-3d;
    }
    .cs_kw_0_0{
        width:46px;
        height:72px;
        left:4px;
        top:3px;
        background: url(./component/window0/cs_kw_0_0.png);
        transform-origin:0% 50%;
        transform:rotateY(0deg);
        transition:transform 1s; 
    }
    .cs_kw_0_1{
        width:46px;
        height:72px;
        right:4px;
        top:3px;
        background: url(./component/window0/cs_kw_0_1.png);
        transform-origin:100% 50%;
        transform:rotateY(0deg);
        transition:transform 1s;  
    }
    .cs_kw_0:hover .cs_kw_0_0{
      transform:rotateY(-130deg);
    }
    .cs_kw_0:hover .cs_kw_0_1{
      transform:rotateY(130deg);
    }
    /* 窗户3  开合窗~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
    .cs_kw_1{
        width:100px;
        height:80px;
        background: url(./component/window0/cs_kw_1.png);
        transform-style:preserve-3d;
    }
    .cs_kw_1 *{
        position:absolute;
        transform-style:preserve-3d;
    }
    .cs_kw_1_0{
        width:46px;
        height:72px;
        left:4px;
        top:3px;
        background: url(./component/window0/cs_kw_1_0.png);
        transform-origin:0% 50%;
        transform:rotateY(0deg);
        transition:transform 1s; 
    }
    .cs_kw_1_1{
        width:46px;
        height:72px;
        right:4px;
        top:3px;
        background: url(./component/window0/cs_kw_1_1.png);
        transform-origin:100% 50%;
        transform:rotateY(0deg);
        transition:transform 1s;  
    }
    .cs_kw_1:hover .cs_kw_1_0{
      transform:rotateY(-130deg);
    }
    .cs_kw_1:hover .cs_kw_1_1{
      transform:rotateY(130deg);
    }

  </style>
</head>
<body>
<div id='rq'>
  <!-- 
    基本模板
    <div style='width:40px;height:40px;transform:translate3d(0px,0px,0px) rotateX(0deg) rotateY(0deg)  rotateZ(0deg);'>

  </div> '
scale3d(x,y,z)  三轴缩放 默认 1,1,1
-->
     <!-- 推拉窗0 -->
     <div class='cs_w_0' style='transform:translate3d(20px,20px,0);' t='tlc_0'>
          <div class='cs_w_0_0'> </div>
     </div>

     <div class='cs_w_1' style='transform:translate3d(130px,20px,0)' t='tlc_0'>
            <div class='cs_w_1_0'></div>
      </div>
      <!-- 开合窗0 -->
      <div class='cs_kw_0' style='transform:translate3d(260px,20px,0)' t='khc_0'><div class='cs_kw_0_0'></div><div class='cs_kw_0_1'></div></div>
      <!-- 开合窗1 -->
      <div class='cs_kw_1' style='transform:translate3d(400px,20px,0)' t='khc_1'>
        <div class='cs_kw_1_0'></div>
        <div class='cs_kw_1_1'></div>
      </div>

</div>

<!-- 

<div class='cs_kw_1' t='khc_1'><div class='cs_kw_1_0'></div><div class='cs_kw_1_1'></div></div>




 -->


</body>
</html>
<script>





  
</script>